<div id="latest-post" class="post">
		<h1 class="title"><a href="#">Rate <?=$doc_info[0]['fname'];?> <?=$doc_info[0]['lname'];?></a></h1>
		<div class="entry">
		<?=form_open('user/doctor_rate/'.$this->uri->segment(3));?>
		
		<table>
		<? foreach ($rating_info AS $item) : ?>
			<tr>
			<td><?=$item['name'];?></td>
			<td> +1 
			<? for ($i=1; $i<=5; $i++) : if ($i == 3) $state = true; else $state = false; ?>
				<?=form_radio("ratingid[".$item['id']."]", $i,$state);?>
			<? endfor;?>
			 +5 </td>
			 </tr>
		<? endforeach;?>
		</table>
		
		<br>
		
		Comments:<br>
		<?=form_textarea(array('name' => 'comment', 'cols'=>'30', 'rows'=>'5'));?><br>
		<?=form_submit('mysubmit', 'Submit Rate!')?>
		<?=form_close();?>
		</div>
</div>